<template>
  <div class="home-container">
    <div class="header">
      <h1 class="title">AI智能体应用中心</h1>
      <p class="subtitle">选择您需要的AI助手服务</p>
    </div>
    
    <div class="app-grid">
      <div class="app-card" @click="navigateToLoveChat">
        <div class="app-icon love-icon">
          💕
        </div>
        <h3 class="app-title">AI恋爱大师</h3>
        <p class="app-description">
          专业的恋爱咨询助手，为您提供情感建议和恋爱指导
        </p>
        <div class="app-button">
          开始聊天
        </div>
      </div>
      
      <div class="app-card" @click="navigateToManusChat">
        <div class="app-icon manus-icon">
          🤖
        </div>
        <h3 class="app-title">AI超级智能体</h3>
        <p class="app-description">
          强大的AI助手，具备多种工具和能力，帮您解决各种问题
        </p>
        <div class="app-button">
          开始聊天
        </div>
      </div>
    </div>
    
    <div class="footer">
      <p>© 2024 AI智能体应用 - 让AI为您服务</p>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Home',
  methods: {
    navigateToLoveChat() {
      this.$router.push('/love-chat')
    },
    navigateToManusChat() {
      this.$router.push('/manus-chat')
    }
  }
}
</script>

<style scoped>
.home-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.header {
  text-align: center;
  margin-bottom: 60px;
  color: white;
}

.title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 300;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 800px;
  width: 100%;
}

.app-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
}

.app-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.app-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.love-icon {
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.manus-icon {
  background: linear-gradient(45deg, #4ecdc4, #44a08d);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.app-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.app-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.app-button {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.app-card:hover .app-button {
  background: linear-gradient(45deg, #5a6fd8, #6a4190);
  transform: scale(1.05);
}

.footer {
  margin-top: 60px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .title {
    font-size: 2rem;
  }
  
  .app-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .app-card {
    padding: 30px 20px;
  }
}
</style>